import {
  ElAlert,
  ElButton,
  ElMenu,
  ElIcon,
  ElSubMenu,
  ElMenuItem,
  ElMenuItemGroup,
  ElBreadcrumb,
  ElBreadcrumbItem,
  ElAvatar,
  ElDropdown,
  ElDropdownMenu,
  ElDropdownItem,
  ElSwitch,
  ElTag,
  ElMessage,
  ElTable,
  ElTableColumn,
  ElForm,
  ElFormItem,
  ElInput,
  ElTooltip,
  ElDialog,
  ElSelect,
  ElOption,
  ElDatePicker,
} from "element-plus";
// 使用到的组件
const elArr = [
  ElAlert,
  ElButton,
  ElMenu,
  ElIcon,
  ElSubMenu,
  ElMenuItem,
  ElMenuItemGroup,
  ElBreadcrumb,
  ElBreadcrumbItem,
  ElAvatar,
  ElDropdown,
  ElDropdownMenu,
  ElDropdownItem,
  ElSwitch,
  ElTag,
  ElMessage,
  ElTable,
  ElTableColumn,
  ElForm,
  ElFormItem,
  ElInput,
  ElTooltip,
  ElDialog,
  ElSelect,
  ElOption,
  ElDatePicker,
];

export default (app) => {
  for (const item of elArr) {
    app.use(item);
  }
};
